#pragma once

#include "LayerBase.h"

class CLayerHomeMiddle : public CLayerBase {
public:
	CLayerHomeMiddle(void);
	virtual ~CLayerHomeMiddle(void);
	CREATE_FUNC(CLayerHomeMiddle);

	bool init() override;
	virtual void onEnter() override;
	//virtual void onExit() override;
	virtual void update(float delta) override;

private:
	void initAnimalPage();
	void onCurAnimalClick(cocos2d::Ref* pSender, cocos2d::ui::Widget::TouchEventType type);
//	void onOpenPack(cocos2d::Ref* pSender, cocos2d::ui::TouchEventType type);
private:
	cocos2d::Node*				m_Middle;
	cocos2d::ui::PageView*		m_AnimalPage;
	cocos2d::Node*				m_UserInfo;
	CCocosCover					m_CoverEffect;
};

